package com.itheima.chapter09.io.bytestream;

import java.io.FileInputStream;
import java.io.IOException;

//字节流读数据---多个字节
public class IntputDemo2 {
    public static void main(String[] args) throws IOException {
        FileInputStream fis = new FileInputStream("MyIdeaTest\\aaa\\a.txt");
        int b;
        while ((b = fis.read()) != -1) {
            System.out.println(b);
            //System.out.println("-------------");
            System.out.println((char) b);

        }
        fis.close();
    }
}
